//我的账户界面的服务程序
myApp.factory("AccountService",["$http",function($http){
	var service={};
	
	service.ListItem=[
		{name:'jan',sex:"男"},
		{name:'jan',sex:"男"},
		{name:'jan',sex:"男"},
		{name:'jan',sex:"男"},
		{name:'jan',sex:"男"},
		{name:'jan',sex:"男"},
		{name:'jan',sex:"男"}
	];
	
	service.change=function(){
	var mm=[
		{name:'jan',sex:"女"},
		{name:'jan',sex:"女"},
		{name:'jan',sex:"男"},
		{name:'jan',sex:"男"},
		{name:'jan',sex:"男"},
		{name:'jan',sex:"男"},
		{name:'jan',sex:"男"}
	];	
	return mm;
	}
	
	//请求数据
	service.requestdata=function(url){
		var promise=$http.get(url);
		promise.then(function(data){
			return data;
		})
	}
	
	return service;
}])